package com.example.demo.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by xing on 2017/6/15.
 * ComputeClient
 */
@Component
public class ComputeClientHystrix implements ComputeService {

    @Override
    public Integer add(@RequestParam(value = "a") Integer a, @RequestParam(value = "b") Integer b) {
        System.out.println("服务出现错误。。。。提示信息");
        return -9999;
    }
}
